package com.hkyp.ss.course.provider.repository.mediate;

import com.hkyp.ss.course.provider.model.mediate.UserCourseLike;
import com.hkyp.ss.course.provider.model.mediate.UserCourseStudy;
import com.hkyp.ss.course.provider.repository.baseRepository.BaseRepository;

import java.util.List;
import java.util.Set;

public interface UserCourStudyRepository extends BaseRepository<UserCourseStudy,Long> {

    UserCourseStudy findByCourseId(Long courseId);
    UserCourseStudy findByUserIdAndCourseIdAndStatusEquals(Long userId,Long courseId,Integer status);

    UserCourseStudy findByUserId(Long userId);

    List<UserCourseStudy>  findAllByUserIdAndCourseIdInAndStatusEquals(Long userId,  Iterable<Long> courseId,Integer status);
}